package com.shop.common.enums.store;

import lombok.Getter;

/**
 * 特殊商品
 */
@Getter
public enum StoreProductEnum {

    /** 余额充值 */
    RECHARGE(204L, "JlJF4Ml-KhQ"),
    ;

    private long id;
    private String sign;

    StoreProductEnum(long id, String sign) {
        this.id = id;
        this.sign = sign;
    }

    public static StoreProductEnum val(long id) {
        for (StoreProductEnum enumObj : StoreProductEnum.values()) {
            if(enumObj.id == id) {
                return enumObj;
            }
        }
        return null;
    }
}
